/**
 */
package vn.smartware.co.framework.validator;

import java.io.Serializable;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * ActionRight
 */

public class ActionRight extends ActionMessage implements Serializable {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 8941140255273921603L;

	private static Log log = LogFactory.getLog(ActionRight.class);
	
	/**
	 * 
	 */
	static ActionRight uniqInstance;

	
	/**
	 * <p>Default Construct</p>
	 *
	 */	
	private ActionRight() {
	}

	/**
	 * <p>Construct an action error with the specfied replacement values.</p>
	 * 
	 * @param key
	 * @param values
	 */	
	private ActionRight(String key, Object[] values) {
		super(key, values);
	}
	
	
	/**
	 * @return ActionRight
	 */
	public static ActionRight getInstance() {
		if (uniqInstance == null) {
			log.debug("ActionRight Instance Create.");
			uniqInstance = new ActionRight();
			return uniqInstance;
		}
		return uniqInstance;
	}
	
	
	/**
	 * @param key
	 * @param values
	 * @return ActionRight
	 */
	public static ActionRight getInstance(String key, Object[] values) {
		if (uniqInstance == null) {
			log.debug("ActionRight Instance Create.");
			uniqInstance = new ActionRight(key, values);
			return uniqInstance;
		}
		return uniqInstance;
	}
}
